themingbackground: Add content_box variable
authorBenjamin Otte <otte@redhat.com>
Sat, 27 Oct 2012 00:07:43 +0000 (02:07 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 31 Oct 2012 10:09:11 +0000 (11:09 +0100)
... to go with border_box and padding_box.

gtk/gtkthemingbackground.c
gtk/gtkthemingbackgroundprivate.h

index 55df2dc2309366d8560a9997c6439a49b8514329..b80cc5b9a8316d00b7853bd8b1e4b17b7fc7518f 100644 (file)
@@ -357,6 +357,11 @@ _gtk_theming_background_init_context (GtkThemingBackground *bg)
   _gtk_rounded_box_shrink (&bg->padding_box,
                           bg->border.top, bg->border.right,
                           bg->border.bottom, bg->border.left);
+
+  bg->content_box = bg->padding_box;
+  _gtk_rounded_box_shrink (&bg->content_box,
+                          bg->padding.top, bg->padding.right,
+                          bg->padding.bottom, bg->padding.left);
 }
 
 void
index e6ed1df76cf9db80179019c632a8dfc864eb87b3..04ecd6afce65aff4aa1fa8272bfbce27b12fcd8f 100644 (file)
@@ -37,6 +37,7 @@ struct _GtkThemingBackground {
   cairo_rectangle_t paint_area;
   GtkRoundedBox border_box;
   GtkRoundedBox padding_box;
+  GtkRoundedBox content_box;
 
   GtkJunctionSides junction;
   GtkBorder border;